package light.head.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 通讯录分组表
 */
@Entity
@Table
public class Grouping implements Serializable{

	private static final long serialVersionUID = -6427187658671075866L;

	private Integer code;
	private String name;						// 名称
	private Date ct;							// 创建时间
	private Integer cu;							// 创建人
	private Integer cc;							//通讯录编号
	private Boolean deleted;					// 是否删除
	
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}
	
	@Column
	public String getName() {
		return name;
	}
	
	@Column
	public Date getCt() {
		return ct;
	}
	
	@Column
	public Integer getCu() {
		return cu;
	}
	
	@Column
	public Integer getCc() {
		return cc;
	}
	
	@Column
	public Boolean getDeleted() {
		return deleted;
	}
	
	
	
	
	
	
	
	
	
	
	public void setCode(Integer code) {
		this.code = code;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setCt(Date ct) {
		this.ct = ct;
	}
	public void setCu(Integer cu) {
		this.cu = cu;
	}
	public void setCc(Integer cc) {
		this.cc = cc;
	}
	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}
	
}
